singer = {'1': '广东雨神'}
song = {'1': '广东十年爱情故事'}
for i, j in enumerate(singer, 1):
    print('编号：{} 歌手：{}'.format(i, singer[j[i-1]]))
for i, j in enumerate(song, 1):
    print('曲库：{}'.format(song[j[i-1]]))
inp = input('1、增加歌手\n2、删除歌手\n3、增加歌曲\n4、删除歌曲\n5、统计功能\n6、查询功能\n7、退出程序\n请输入您要进行的操作的编号：')
if inp == '7':
    exit(0)
elif inp == '1':
    singer = list(singer.values())
    name = input("请输入您要增加的歌手的名字：")
    singer.append('{}'.format(name))
    print("现有歌手：{}".format(singer[0:]))

elif inp == '2':
    delete = input("请输入你要删除的歌手的编号或名字：")
    if delete.isdigit():
        if delete in singer.keys():
            singer = list(singer.items())
            singer.insert(0, '')
            delete = int(delete)
            del singer[delete]
            print('目前还剩下这些歌手：{}'.format(singer))
        else:
            print('你输入的编号不正确！')
    elif delete.isalpha():
        if delete in singer.values():
            singer = list(singer.values())
            singer.remove('{}'.format(delete))
            print('目前还剩下这些歌手：{}'.format(singer))
        else:
            print("没有此歌手！")

elif inp == '3':
    song = list(song.values())
    name = input("请输入您要增加的歌手的名字：")
    song.append('{}'.format(name))
    print("现有歌曲：{}".format(song[0:]))

elif inp == '4':
    delete = input("请输入你要删除的歌的编号或名字：")
    if delete.isdigit():
        if delete in song.keys():
            song = list(song.items())
            song.insert(0, '')
            delete = int(delete)
            del song[delete]
            print('目前还剩下这些歌：{}'.format(song))
        else:
            print('你输入的编号不正确！')
    elif delete.isalpha():
        if delete in song.values():
            song = list(song.values())
            song.remove('{}'.format(delete))
            print('目前还剩下这些歌：{}'.format(song))
        else:
            print("没有这首歌！")

elif inp == '5':
    print("目前共有歌手{}位，有歌曲{}首".format(len(singer),len(song)))

elif inp == '6':
    a = input("1、查询歌手\n2、查询歌曲\n请输入您是想查歌曲还是歌手：")
    if a == '1':
        b = input('请输入您要查的歌手名：')
        if b in singer.values():
            print('此歌手在名单中')
        else:
            print('此歌手不在名单中')
    if a == '2':
        b = input('请输入您要查的歌曲：')
        if b in song.values():
            print('此歌曲在名单中')
        else:
            print('此歌曲不在名单中')